#include ".\ReportTestResult.h"
#include "ExcelHandler.h"

ReportTestResult::ReportTestResult(void)
{
}

ReportTestResult::~ReportTestResult(void)
{
}

void ReportTestResult::testsStarted ()
{
	TestResult::testsStarted();

	m_data.m_headers.push_back(ReportHeader("Reference", "TEXT"));
	m_data.m_headers.push_back(ReportHeader("Description", "TEXT"));
	m_data.m_headers.push_back(ReportHeader("Input", "TEXT"));
	m_data.m_headers.push_back(ReportHeader("Expected", "TEXT"));
	m_data.m_headers.push_back(ReportHeader("Stat", "TEXT"));
	m_data.m_headers.push_back(ReportHeader("Resp", "TEXT"));
	m_data.m_headers.push_back(ReportHeader("Version", "TEXT"));
}

void ReportTestResult::testsEnded ()
{
	IReportHandler* handler = new CExcelHandler();
	handler->WriteReport(m_data);
	delete handler;
	TestResult::testsEnded();
}
